Added a 'state' field to the xenbus_device structure, which caches the state
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sat, 4 Mar 2006 18:10:56 +0000 (19:10 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sat, 4 Mar 2006 18:10:56 +0000 (19:10 +0100)
commitf8de6179af617b48213384f6de6b15364fb2d687
treed583951087b2453e235293ceebd5249f939d47c7
parent39dbaabab798eb9faddff91e3e6cbff8b2d8051b
Added a 'state' field to the xenbus_device structure, which caches the state
at the local end of the xenbus connection (i.e. that value that is passed
through xenbus_switch_state).  This means that xenbus_probe can wait for all
the boot devices to become ready without having to hurt the store.

Also, fix this probing -- previously, the wrong value was being returned by
all_devices_ready_, so this polling would only have waited for one device.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_client.c
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
linux-2.6-xen-sparse/include/xen/xenbus.h